<?php

date_default_timezone_set("PRC");

require 'vendor/autoload.php';

use QingStor\SDK\Service\QingStor;
use QingStor\SDK\Config;

$config = new Config("TAPGMARURFICDAGMCOTV", "xRr0shs5NY59vMo1FluPDRr00Hf6C182mFeJuRcI");
$service = new QingStor($config);

$response = $service->listBuckets();

// Print the response statusCode.
echo $response->statusCode;

// Print the buckets.
var_dump($response->buckets);